html = """
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <title>Document1</title>
</head>
<body>
    <h1>正则</h1>
    <ul>
        <li>zheng1</li>
        <li>zheng2</li>
        <li>zheng3</li>
        <li>zheng4</li>
        <li>zheng5</li>
    </ul>

</body>
</html>"""

import re

req = re.search(r'<title>(.*?)</title>', html,re.S)
print(req.group(1))
r = re.findall(r'<li>(.*?)</li>', html,re.S)
print(r)
r1 = re.findall(r'<li>(zheng.)</li>', html,re.S)
print(r1)
